package ysm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ysm.entity.College;
import ysm.mapper.CollegeMapper;

@Service
public class CollegeService {
	@Autowired
	private CollegeMapper collegeMapper;
	
	public List loadAllCollege() {
		return collegeMapper.loadAllCollege();
	}
	
	public College selectByPrimaryKey(Integer id) {
		return collegeMapper.selectByPrimaryKey(id);
	}
	
	public void insert(College record) {
		collegeMapper.insert(record);
	}
	
	public void updateByPrimaryKey(College record) {
		collegeMapper.updateByPrimaryKey(record);
	}

}
